<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .content {
            width: 100px;
            height: 100px;
            margin: 0 auto;
            background-color: brown;
            /* all会有效率问题 */
            transition: all 2s linear 0s;
        }
        
        .content:hover {
            width: 200px;
            border-radius: 50%;
        }
        
        .box {
            width: 1200px;
            margin: 40px auto;
        }
        
        .box ul {
            list-style: none;
        }
        
        .box ul li {
            position: relative;
            float: left;
            width: 380px;
            margin-right: 20px;
        }
        
        .box ul li img {
            width: 380px;
        }
        
        .box ul li:last-child {
            margin-right: 0;
        }
        
        .box ul li div {
            width: 380px;
            background-color: rgba(0, 0, 0, 0.3);
            position: absolute;
            left: 50%;
            bottom: 4px;
            margin-left: -190px;
            /* 透明度设置为0 */
            opacity: 0;
            /* 过度 */
            transition: opacity 1s ease 0s;
        }
        
        .box ul li div span {
            display: block;
            text-align: center;
            height: 30px;
            line-height: 30px;
            color: #fff;
        }
        
        .box ul li:hover div {
            opacity: 1;
        }
    </style>
</head>

<body>
    <!-- 动画盒子 -->
    <div class="content">
        <p></p>
    </div>
    <div class="box">
        <ul>
            <li>
                <img src="D:/python1/images/4175.jpg_wh1200.jpg" alt="" />
                <div><span>空山新雨后，天气晚来秋</span></div>
            </li>
            <li>
                <img src="D:/python1/images/6267.jpg_wh1200.jpg" alt="" />
                <div><span>蝉噪林逾静，鸟鸣山更幽</span></div>
            </li>
            <li>
                <img src="D:/python1/images/8500.jpg_wh1200.jpg" alt="" />
                <div><span>灯红酒绿惹人醉，不及落叶梧桐传相思</span></div>
            </li>
        </ul>
    </div>
</body>

</html>